Skip to content

feat(inbox): status, since and multi-account filters, plus inbox.resolve - #43

Merged
alihesari merged 2 commits into
mainfrom
feature/inbox-filters
Nov 3, 2026
Merged

alihesari merged 2 commits into
mainfrom
feature/inbox-filters

Conversation

@alihesari

Copy link
Copy Markdown
Member

Pairs with fopost/fopost branch feature/inbox-simplify and merges after it.

What changed

  • inbox.list, inbox.threads and inbox.conversations take status (unanswered, replied, resolved) and since (datetime or ISO 8601 string). account_id accepts one id or a list, sent comma-joined.
  • The state, platform and q filters are removed from those three methods, and sort is newest or oldest only. This is a breaking change, matching the API.
  • New inbox.resolve(workspace_id=, type=, account_id=None, before=None) calls POST /v1/inbox/resolve and returns the resolved count.
  • ChatAdapter.receive takes status (default unanswered) instead of state and platform. mark_read still marks the item read; its docstring no longer says receive() skips read items, since the list cannot filter by read state anymore.
  • README and CHANGELOG (Unreleased) updated.

Tested

  • uv run pytest: 226 passed
  • ruff check, ruff format --check, mypy: clean

Owed

  • No version bump or release; that happens in the batched SDK release.
  • fopost-django and fopost-fastapi do not use the inbox filters, so they need no change.

inbox.list, inbox.threads and inbox.conversations take status (unanswered,
replied, resolved), since and a list of account ids, and no longer take
state, platform or q. ChatAdapter.receive reads unanswered DMs by default.
Resolves every unanswered item of one type through POST /v1/inbox/resolve,
optionally narrowed to some accounts or to items dated before a cutoff.
@alihesari
alihesari merged commit bd97b39 into main Nov 3, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant